Basic GP5 export code done, needs debugging