minor tweaks; dataframe was being written in memory, but not being written to HDF5 file