Added main.cpp file to apple branch. (sorry charlotte)