Cleaned scheduler.h and .c minor changes to .h and .c