Implemented cacheSolve and added comments

Finished implementing (and testing) cacheSolve function and added
descriptive comments to the functions and overall file for full credit.