improved version of FlowThermostat

added looking for z positions in G0 lines