added more logging
Small edit to reduce line length
Add script to set hostname