added makefile
adding tests
seems to work