Minor - format code
Moving 'require vendor/autoload.php' from global.inc tp web/index.php, adding comments
Replacing global $app with a property.
Minor - adding comments.