Update cachematrix.R

added clear comments and fixed up the indenting a bit.