Allows template directory.

Closes #2