Writes x, z and ionisation fraction
Working plotter module that writes logfile
Removed i array