add documents UDFs and how to execute/test