Turned main function definition into C++11 style