added xml validity sections of receive_xml() to readDataFile()
reverted to 2 MB buffer size in readDataFile() since otherwise it causes seg faults