Update app.cpp

added some comments