get_max_rating_difference now working. Bundled with tests.