added snippits for dochead, masthead and footer to templates