Added mainTemplateData option so that custom data can be passed to main template
Merge pull request #17 from s-e-b/allow-custom-template-data

Added mainTemplateData option so that custom data can be passed to main template