Updated the readme.md, and added a set of unit test (mocka.js tests)

Added examples to the readme.md file to make it more appealing, and added a set of unit test using mocha.js to support the examples.