events position is now atomic
Implemented priorities for events
Finetuned kernel example.
Removed unnecessary if tests from tasks.
renamed files from cpp to c
Fixed makefile and examples to work with latest headers.
Fixed mistake with ATOMIC_BLOCK