Splits out header and footer, layout css template, corrects many tags