Fix stateChangeSuccess fires multiple times

Add documentation/TODO notes