Code works

But more comments are needed
Final code

Finalized program to invert matrix.