added xml writer
added watermark info to output