puts the files in the right format x y xerror yerror