Added extra checks.
Added remote URL support to grader.js