Add grading_tests for run function
Some refactoring; mark private functions/classes with __