Add comments to the calculation functions in the `rating-set` namespace.

- Also refactor the `normalized-rating-sets` function.