fixes issue 469, added -m / --match-original
fixes xml output not having newline after xml declaration