Add some documentation on how the templating works