added comments to everything
accepting connections now defaults to hostname if no nickname is provided