Look up the Smith normal form. That provides a link between the matrix algebra and the abelian group form.