added documentation for removeStage() and checkIfHasNoTasks()