Rewrote chapter on references.