Proper logging, added config file