Added Threads, repaired reader.c