Update logging for port etc. and fix up 4.0 config file.