ok, don't know what i did wrong or where it went wrong...
commented every step, echo'd what is happening.
cls the screen after each step and explaining the next step...
now it works like a charm again, and tells me only the IP and location of the hostname i originally searched for.
is there and way to only show the treehouse part after the Computer1 -
i have removed the >> file.log and now it echos out onscreen