Added the header and footer templates; fixes #31
Merge pull request #34 from cdog/feature-31

Added the header and footer templates
Added template handling