Added additional checks and added url input support to grader.js