Updated documentation and whitespace fixes