Issue #2990280 by TR: [D7] Coding standards - Mostly adding some missing function docs. Also correcting some comments and some line-length issues.