Code fix and adjusted tests to changed interface.
Docs update.
Introduced _getHost() method.