Completed CLI. Closes #4.

It's mostly garbage, but it works.