updated inputoutput.cpp

changed it so it accepts the person header file and the new method names.