Add templateFile option
Add preprocess callback
Add better example for preprocessing
Merge pull request #2 from jantimon/master

Added templateFile option; added preprocess callback