Added docs to nearest neighbors