add Makefile, update scripts