Fixed up the documentation and made a few tweaks to some code.