removes a console.debug.
some minor cleanup.
adds templates to the top of generated code, and builds distro.