Refactored and Commented

Renamed variables, changed if to if-else in cacheSolve; added comments