Fixed a bug with event subtypes and updated examples