working scheduler, added repetition, taskstruct ptr