Added more checks and updated grader.js to take a file or a URL as an input