add all tests for jinja2 template rendering
add error handling for jinja2 template handling
add more docstrings to assets.py