Remove unnecessary WP head elements and add basic formatting functions