Tried to format the templates for easier reading. Work in progress.