Update notes for submitted changes

* Move environment and template file functions to own module
Update notes for submitted changes

* Test coverage of empty environment
Update notes for submitted changes

* Improve and unit-test template contents fetching