Implemented possibility to pass options to the template engine.

Issues  #5 #3