Implementing onChange property, fixes #13
Adding onChange to examples