Add --help, --legal, and --raw options

Also move some things around.