prettify generated output
update partial templates
clean up primary templates