Some Fixes

Changes:

 6750e67 (Revath S Kumar, 11 minutes ago)
    remove `writeTemplate` from top-level methods