getFSM method now prints compilable code.
Addition of getTransitions and getNodes methods to BehaviorWriter.