working functionality.

Generating almost the entire site, need to merge new templates though