Logging reworked
File logging added

config.py: code cleanup