Structure cleanup. Adds primary jade template.