Add config file and log support