Some changes to documentation.
Moved main message-handling-method to new class MessageProcessor and split it up.