add docstrings for `send` and `recv`