added xml loader and writer class