Many small changes

Added new commands. Nodes are removed from the tree when its reason is
gone. Added more events. Added icons for toolbar