update namespace conflict of ply file and add headers