added documentation for path() function