Remove useless function call.
Allow templates to specify the input encoding.
Bugfix: Correctly reset vars.
Comment fix
Finally implement stylesheet processing