Added the main finite state machine

Added the finite state machine
Added a commander to manage state transitions
Added a parameters manager
GUI revised
Test thread activated for debug
Bug fix