Multiple callbacks

Added possibility to have multiple callbacks for events and made event functions "private" by adding __ to function names.
I was actually referring to the `debug` function. I realize the selected rows from github was not optimal :)