Updated main.cpp

Finished parseInput function and added other stuff.