Linear Algebra over a Ring/Modules over principal ideal domains