Added support of events

Added support of following events. also updated documentation and added
an example:
create:
change:
expand:
collapse:
showlevel: