ISSUE 76: Fix typo cast and add events to EventIDCache
Update Issue 76
Status: Fixed
Fixed #2 and #3 as per patch (with some addtition to EventIDCache)