moved getIP into it's own module, removed extra \n
removed dependency on 'address', return data.address value, test now asserts the address is correct