Did some cleanup and documentation.

Signed-off-by: Jared Woolston <jwoolston@tenkiv.com>