added ability to take command line arguments for main.cpp