Updated event callback

All events are now sent through a single callback function
Fixed parsing of string attributes