Use C++ code in C++ comments.

Removed Hungarian notation from parts of the code.
Surround code in document with code/endcode tags.
Fixes tag typos: deprecatd -> deprecated
Change some doc due to the change of source code.

Fixed some incorrect use of doxygen command.
Fixed more documentation errors.

Modified mismatching parameters doc caused by refactoring.
Added the missing doc of some parameters.
Fixed incorrect use of doxygen tags.
Removed Hungarian notation from parts of the code.
Replaced 1 tab character with 4 spaces.
Yet another documentation fix.

Modified mismatching parameters doc caused by refactoring.
Added the missing doc of some parameters.
Removed Hungarian notation from parts of the code.
Merge pull request #3347 from timothyqiu/docfix

More documentation fixes