Added support for onInit and onSwitchChange event
Merge pull request #315 from pauloortins/develop

added onInit and onSwitchChange methods