add API docs for treesearch module