Switch to argparse for command line argument processing. Consolidated some of the __main__ code into a couple of functions.
Merge pull request #21 from firecat53/master

Migrated to argparse instead of optparse