added comments for header functions
compiled as a shared library