my script for the programming assignment
change generated filename to tidy.txt, so the webinterface for the
programming assignment lets me upload it
minor cleaning
an explanation of how the script works