added report template, moved functions from spreadsheet