Create main.cpp

first workable version for new APIs