Finish responses in all functions, rework gettemplate() and minor template changes