Implemented stateChanged() signal.
Merge branch 'master' of https://github.com/carlonluca/pi