Coded the functions and added comments

Coded the functions, makeCacheMatrix and cacheSolve, and added comments