Rewrote grades.xml formatting, fixed a little bug