Fixed sample code.

Typo in 'setEventRecievedBlock'.
initializer call fixed by adding 'secure' argument.