Slightly changing interface for writer

so it can be used more appropriately
Renaming the template parsing class

It should have the single responsibility of parsing the templates and
should not be responsible for writing the files
Separating out the template parsing and document writing responsibility
[TRIVIAL] Removing some unused comments