Now using the library api, added make file, added support for custom selectors