Added doc for createStateTree