added StateMachineBuilder, (missed on last commit)

refs #2