added documentation for sched.h
re-added the scheduler callback (the actual call was missing)