Update documentation and various refactorings.

* Fix pep257 (documentation) errors.
* Provide a sample test function that simply creates the student GRADE file
* Provide a proper command-execution order
  * test execution should occur before emailing
  * purging should occur last