added grader.js and checks.json
updated grader.js and fixed bugs