Bug fixes and added example.

Several of the equations were slightly wrong. I made variables
bold when required, and added an example. I also expanded some of the
explanations.
Regenerated PDF.