heavy rewrite, version bump
added mocha to devDependencies