Modified the on() method.

Added example of usage of the new on() specification. Changed the on() method to allow the specification of a target-selector, when having 3 arguments. Otherwise it behaves like before. The API was not damaged