completed functions makeCacheMatrix and cacheSolve. Added documentation.