Broke command-line stuff into its own module.
Added Makefile.