Fixed missing [endsect] and shallowed a bit the Notes section.
Massive but simple changes:

- Removed all tabs
- Changed all Doxygen @cond/@endcond tags with preprocessor sections, as Doxygen still has some problems when parsing this code. This also makes unmatched Doxygen sections a compilation error, which is easier to detect.