add loop_read.sh and renamed loop_write.sh