finished fixes to grader.js