Added code and comments.

Wrote code to cache and return matrix inverse.
Added comments to code for easier reading.