added getHost method
Merge pull request #79 from ecentric/ecentric.fix-gethost

added getHost method