Added onInit callback, updated docs for callbacks

Signed-off-by: Joern Bernhardt <jb@campudus.com>