documentation and fixing whitespace