Using docopt for arg parsing. Misc changes.