Updated code comments

Added code comments to cachematrix.r file.