Up the warning level, and fix the resulting warnings with msvc, gcc and Intel. Fix bug in docs and regenerate.