Added new attribute to State: bool permanent; // if it's true, then the value of this state cannot be changed. Only can be changed from or ot UN_DEFINED valuepermanent
Added the new attribute "permanent" the test States if they are permanent.