init copy of library + cleanups and doc
examples, more api fixes.