Multiple callbacks

Added possibility to have multiple callbacks for events and made event functions "private" by adding __ to function names.
Removed debug function.