fixed faulty event names
fixed signatures of function calls in examples