Rewrite. Better exception handling and OO stuff
Fix bug in counting. Add better example
Few bug fixes. Better example
Before changing globalstore
Fixed bug in exceptions. Make invalid paths impossible
Small fixes