PRP2-A2 v0.3 stateMachine with new v0.2 main

initializing of currentState not needed any more in main, solved by
switch default
PRP2-A2 systemFunctions v1.3