Pass parameters from command line.

Closes #19.