fast refactoring of the code and comments corrected
htaccess rules to hide app.php