Add command line flags for configuration.

Fixes #2.