Added header / footer templating, defaulting of settings