add ply header to file