Fix bug with message counting that made it dump very small files sometimes
improved and documented event runtime logging