Code cleanup, external css, invalid code remove