updated comments for cached matrix