Improved code for dealing with ip address and ARIN and APNIC databases.