Removing unused functions, adding a Makefile which creates a static library and a test binary.