Added more thorough commenting the the grade_imp file.