Completed cachematrix.R with full comments updated

Minor edit to comments in code and changed the name of one variable.