Improved the structure of the comments and their content.

* Moved function documentation to multiline comments.
* More information on what the most important lines do (source: datasheet).
* Spaces and Tabs where unified.