bug fixes and type notification added

Several bug fixes, added notification type and added notifyClass
property for adding custom classes