modified file6.txt topology
rewrote TOPOLOGY to be more robust