modified the grader script to accept URL or file