Removed console output
Added test for function factory
Updated generated files
Fixes copy-and-paste error
Added module template generation
Updated generated files