Fixed a typo in data_io.py and fixed a counting error in DaqWriterRoot class.