chore(docs): Adds documentation to lib/generator.js