Refactor Generator class into a function
Refactor jinja parts out
Add link to main index