Component generator inherits from the app generator
Fixed issue with module name

module name was using appname, which was set from the argument name in the app generator.
Adding modules to modules.js using regex