Added command line opts.

Fixes #1