behavior writer done with getmethods and recursivly getting the code of subclasses
Behavior writer works fine with recursive, test 2 created to test fsm code, minor changes in other classes