edited QTask::addSubtask(), added template saving implementation