Implemented system sync with crank and cam state and simple error handling
Moved task handler functions to external functions, signatures are in tasks.h, each function has its own .c file in Src/tasks