update Makefile
briefer help texts
extract writebatch from main loop