Ok, thanks, it's finally generating source code in my states

I have the impression that I still have a lot of questions on this software (this is the first time in my life I'm using a soft in order to generate code...)
I was looking into the links you gave me, and I have a question... Why when you're creating your method attached to your state you need to put the "generated code" (because this is not generated at all, I'm not even getting the variables of my states, but this is not the problem ^^) into the area Behavior and not initial code? What is the purpose of the "initial code" in this case?
And I was wondering, how the state machine is able to move from Entry to Do or Exit, because I can't see the source code linked to this ... (actually I can see the enumeration, but not the changes :S )
I have the impression that for the moment we don't know the value of the "CommandType" and so we can't figure what is the comportement into the state diagram

Sorry for all those questions, but I really would like to understad how everything works in EA.