add functions to makefile, update readme