Merge pull request #7 from jbouse/master

Fix template instance variable error
new version for issue #7