Internal documentation and some whitespace fixes.