converted to c and to be built as a shared library for inclusion on other projects
fixing makefile problem and updating readme to reflect library changes