Deleted unused header files and thread classes