More comments added to R functions

Comments to each the the functions defined in the cachematrix program