documentation and whitespace cleanup.