Refactored grader.js to handle either file or url and added print_results function