Added executors to the scheduler 

Making this pullrequest because I can inline comments in your code. (I think..)