Host port made configurable; modified some javadoc.