Take a look at this reference. As I recall, it explains some of the chemistry quite nicely: Vogelstein and Gillespie, 1979, Proc. Natl. Acad. Sci. USA. 76, (2) 615-619.