add grade_class to student and grade data
fix minor bugs