fixed bug in simulator with .to_csv; updated gui