A few code formatting changes.

Including:

  - Use two whitespaces for indentation consistently.

  - Use Markdown in Doxygen comments.

  - Remove curly braces for single-line if-else statements and for loops.

  - Use "guard style" when possible.