add some missing function documentation