comments + able to handle incomplete urls now
tested & fixed the usage of hostname instead of the full URL +  updated doc