Some fixes and add .htaccess.