Added new callback options: beforeOn, afterOn, beforeOff, afterOff. Added new options to documentation.