added xml export, edited documents