Added comments and fixed the set function in makeCacheMatrix()