Allow use of custom templates

Closes #6