Updated IO.cpp

Additional detailed pseudo code for P1-C1 and P3-C3, as well as input
code for exiting simulation.