Added notes to clarify what functionality each file is supposed to contain
Re-enabled writing output data out to a file
Changed documentation to clarify definition