added tests for data flow through __main__
Rewrote some __main__ tests
cmd line arguments work more like you'd expect in edge cases
should run safely in TC now