Cleaned some method bodies.
Fixed typos in documentation. Reworked a few method bodies for brevity and clarity.