Refactor calculation functions in Rating.clj
Move all the docstrings below the arglists.