First pass at adding a CLI

Fixes #2