onInit, onReInit, onBeforeChange, onAfterChange are callbacks

Fix for issues #18 and #19