update wraparound calc for cscan and clook; update output.txt