Better comment for add_function
Comment for resolve_udf
Check for duplciately defined variables