rewrote method to parse hostnames, no longer check hostname validity as that is a non-goal of this tool.
add back character deleted during reformatting.
updated and added to some docstrings.