Some changes to project file.
A first draft of the StateMachine implementation.