Added method to get IP address of the device, method to check if device is currently connected to WIFI