Feature/mfr pdf

Working but not ready for merge.
Could you use an absolute path here instead of a relative path? You could still specify the `templates` directory in relation to this module, like so:

```python
# The absolute path of this module
HERE = os.path.dirname(os.path.abspath(__file__))
# The absolute path of the templates directory
TEMPLATE_DIRECTORY = os.path.join(HERE, 'templates')
```