Added function to write table to hdf5 group.