createTask() now created a loop and a yield()-call arround

the function, renamed insertTaskInternal to _insertTask.