Added some finishing touches to the Message classes. Integrated some event support in input handling.