Fixed the index.php file to be more ready for usage