setting up new root

moving index.php to /public/index.php
fixed bugs for assets without call directory public