Update App.php

Fix a few bugs. Added missing interface `implements` statements. Added missing commas.