stylistic changes, fixing bug in update grades