added logging to event broker hub
added comments for readability