added options for managing template context
test data for new template context
added templateContext tests
removed bug with content never getting updated