minor
added nib
refactored to lib + examples