modified grader and checks and output files