Updated example
Updated main library
- fixed scoping issues
- updated documentation