remove `writeTemplate` from top-level methods
Merge pull request #260 from revathskumar/updates

Some Fixes