Restored original app main.cpp (sry about breaking it :/ ).