validating https port, and made docstrings consistent with others