Added utility to calculate the repetition rate.
Some corrections.