Little modifications in state machines.
Added mutual exclusion to buttons.
Created tasks' skeletons.