Improved function doc