updated to compile to a library
updates