added debugging to rate_group
Merged ratings.py