Add some option parsing instead of hard-coding things.

Defaults are now specified in the Config module.