Revise postprocessing and gradient calculations for RPMD