Add dispersion code

The dispersion code from Peter.