fixed example, updated package.json, small changes to lib, general code cleanup
Merge pull request #1 from DaVarga/master

fixed example, updated package.json, small changes to lib, general code ...