Completed rating function, commented code

Rating system works, just follow onscreen instructions. Ratings haven't
yet been implemented in the heuristic, but will be.