argparse branch achieved

Moved from `getopt` to argparse, which produces nicer outputs. Some
other faetures may be (temporarily) broken.

Closes #24
Merge branch 'argparse'
merge argparse branch in