Replace baker with argparse; some code restructuration.