change import
fix function args
introduce argparse func
temporarily bring back getopt
Merge branch 'master' into arg
remove optparse argument processing
get rid of -b
pull in parser functions into decode
remove no longer used parser functions