creates reader_ready file twice. not needed. Removed gen_thread from reader side, as well.