rename "Callback" interface to "EventHandler"
TCP: check for existence of valid event handler
add some more comments.
some cleanup