Support command line interface. Closes #10.