Nice debug method

Added debug() function in CommunicationModule: fills the message buffer
one character at a time (using processCharacter). This is the closest
way to the reality that the system can be tested.