CacheMatrix object code with additional comments; bug fix