add makefile, builds library, add test