initialize ndemanded with -1
remove dont_exit
use eval() for call of startTasks_child()
change timeout for waitfirst() to 500 ms
update comments