Finished docs.
Added defaultPort parameter.