added reading in the file (basically took care of the splitting up that needs to be done)