Create main.cpp

cmd line processing functions