Ratings retrieval has been broken I need to write some tests asap for this.
Corrected grade submission and edit
A few more minor changes