Adding mocha testing framework with tests. Cleaning examples and renamin...

...g sync to standard.