PRP2-A2: v0.1 main + v1.2 of systemFunctions

v1.2 of systemFunctions: added function
v0.1 of stateMachine: first implementation (untested)