Add docstring to coding function