can now write and append to hdf5 files
temporary changes to structure to allow simple read and write