Modification of main.cpp

Moved the code that would handle the program parameters into a separate
function.
Modification of main.cpp

Added a flag to enter interactive use of the CPS.
Also, added the start of the function for handling user interactions.