fix file encoding
add exception logger
better logfile name configuration, logger disabled by default