Corection of documenation

Function onstatechange was incorrectly documented as onchangestate