- cleaned code a bit more.
- added comments to some methods.

Signed-off-by: imp <johannes.san@gmail.com>