fix errors in API
Merge branch 'hotfix/add-ns-to-doc'