minor
Refactored initApp() method. (mostly removed unnecessary code)