fixed mislabeled variable in README example
fixed bad parsing on URL with port