Add docstring to whitelist_addfunction and include documented functions in API