Create readout.cpp

New readout file, updated with changes to allow compile