add makefile
update README
fix bugs, add rudimentary CLI