app.cpp updated.

CHANGED MODE : MAIN