MD Simulation of rare events: calcualtion of rate constants