changed some comments around and added the fifo thread