update 20130430 18:55

added event functionality and fixed some message bugs