Add missing docstrings

Add missing docstrings in coap.py.
Rename several methods in coap.py