fixes warnings/errors in examples
change event type (minor)