Writing to file for all topologies and gnuplot graphing working