Several comments regarding code and style.

These should not be taken too serious if the code is not meant to last.
However, most of my comments are straightforward to implement and really
improve the understanding and extensibility of the code.