docs: Added documentation for on() and off()