Added option 'template'

Added option 'template' for overriding default template