doc(add): add docs to add function