Fleshed out cachematrix.R functions and added comments.