fix some bugs in kalman and generate h5