Only every 1000th step is saved
Also changed to every 1000th
Merge branch 'comparison' of https://github.com/paulthebaker/inverter_src into comparison