fixed bugs in the way the h5 raw voltage data are written