Handle IP adress changes

Update now checks for changed ip address. if it has been changed, the device is removed and re-added.
This line should be moved into the following if-statement