Merged lib2 inside lib and ported examples.
More documentation.