added filter for message output and a timer for frequently sending of messages
fixed endless loop and removed time based registration, registration is now called after each sent message
code cleanup