added comments to cachematrix.R and added some more testing in testCases.R