Get basic CLI working

Fixes #19.