modify threads, destructor is corrected, added finished signal