added creator(), destroyer(), fileio() thread functions