Adding ptn_debug variadic function
Fixing debug flag
Cleaning syntax