Did you try the examples from the UDF comments?

They will give you some reassurance that the UDF works for you and also demonstrate some of the data that are returned.