cleanup and comments for update-server.sh