added resources, img folder and flat index.php file