fixed a bug in generating hdf5 tables
bug fix in log generation codes