Updated the links and templates

Udated the links to the templates and made some changes to the header
links. Added more comments for clarity.