class to send debugging and other messages to the gui