Basic CLI done

Fixes #3.
#5's basic functionality done.