adding mocha and blanket as development dependencies and setup npm scripts to run tests
cleanup
fixing bug when providing odd encoding