added (de)activate functions to fIState.as
added some checks to fStateMachine.as
made fLayer.as untouchable by default