Update cachematrix.R

Comments have been added and variable names have been updated for clarity.