updating generate_template

Added
- return ‘template’
- examples, export section
- print only if verbose TRUE