Moved the head cleanup to functions.php
Improved functions.php