Added more documentation on events and tcp server.