cleaned and commented index.php