added csv logging to main.py