added pacmar xml generator
ammended header overrides to preserve original header
new PLY lines still injected into header