Added argparse with subcommands. Removed optparse.