shovel everything into explicit __main__ for future breaking out into functions
Merge pull request #2 from rmblair/reorg-to-main

shovel everything into explicit __main__ for future breaking out into functions