File metadata.
Make functions more amenable to *args, and **kwargs for argparse.
Add help text. Move module level code into main(). Add dump.