Tidies everything up, prepares for CSS