Cleaned up index.php
Cleaned more code