added additional command line options to main.cpp.