added public directory and index.php