Added template section

Added a a templating section and tidied up the markup.