localStudentGradYr handling and some bug fixes