Hi, UDF manipulation is fully described in the Fluent Customization Manual. I invite you to refer to it to undertand how to add and modify all the terms. There are specific Macro to customize this turbulence model.
Usually as Ansys Employee we do not support UDF testing and correction, so I cannot debug your code.
Luca