added makefile and commandline tool