Improve connection handling and log
Update config document