Added mocha for testing and put modules into lib folder