Edited for spelling, grammar, and clarity.

I also added some material to help clarify things, so please review for accuracy. It's based on the best of my knowledge from reading the source code.

Also, some of this remains unedited because I could not figure out the meaning of some parts.