Functionality, documentation, and formatting.

Cleared up some ambiguity and made the file more stylistically cohesive.