added taskCompletion to TDWindow
changed some default values
added better task completion check in TDwindow
commented some debug logs