add xfn.c with plugin boilerplate and base structure