Commented version

Template commented and working with mean
Version 1.0

Verified working version of the cached matrix inversion code.