improve docs for Function class and methods; provide code examples
Merge pull request #234 from LoomSDK/PBG-FunctionDocs

improve docs for Function class and methods; provide code examples