added pthreads (for io only by now) + refresh screen for i count +