Corrections

- when a file is loaded and when a change is saved, there is no more "save as" window
- initialize first active states
- initialize statemachine when running and not when compiling
- correct a mistake which prevent expression from finding timers in themselves