Add logging & and more settings in config file