(probably) switched to swig for templating
added entry point as a lib
deleted some useless logging