refactor(generator): add a function called when generation is complete

issue #2
chore(tests): add mocha module for tests + first test

- Run tests using 'npm tests'

issue #22
chore(tests): add travis support