building as shared library

the library folder has a make file to make and make install
the examples had been modified and tested to compile and link to the installed
library