add main.cpp for application main