syntax changes.
rewrote some syntax and also trying to add ipaddress to column headers next to hostnames.