Added unit tests for main generator.
Fixed code style.
Updatetd README.md and package.json.