Add signals.h and signals.c . Change Scheduler and task structure accordingly