restructuring to library
makefile WIP
shared-library prepared
library with examples
README updated
code cosmetics
before merge