implements cacheSolve
last round of updates to comments