Added checks for domain names and IP addresses..need to format output