adds state factory and transition builder
updates transition builder with multiple build algorithms.