added logfile parsing to main.py