Updated example project with Events samples (corrected bugs as well).