Starting changes

Comments added
Changed code to reflect matrix inverse

Removed mean computations and inserted the solve to invert the matrix