Feature/qe pig udf

Cleaning up