added logging mechanism, changed config file distribution