Various small tweaks to main library
Improvements to documentation
New examples added