add functionality to cacheSolve w/ comments

tested and works