Updated function doc to latest API
Merge pull request #47 from asafge/patch-4

Updated function doc to latest API