Did some code cleanup splitting long lines, adding @file headers, and fixing typos while studying the codebase.