Rewrites every section to improve semantics and applies new styling.