Fixed indentation and implemented set_connected_state() and get_ip_addresses()
Added missing implementations