improved hdf5 compatability and error bar plot