Changed to using docopt.c generated argument parsing