State transitions in createStateTree doc

Added doc which corresponds to #73