Add -Wdocumentation if supported by the compiler.
Fix a small documentation bug.
Fix a bunch of warnings.
Update and fix Xcode project.
Improve documentation.