cleans up index.php and adds comments