altered the read of add_data

chages the way it reads headers and logged bad sensors