main.py: added comments and read conif file