made opts to distance optional, doc update