listener now fired only on state change fix for #35

I still have no idea how to make a pull request against an existing issue, so apologies for this. 

But here's the fix, I said it was simple :)