Some corrections and additions to final version of cachematrix.R