add decoder to HDF5 (first working version)