added xml reader; k is now set with the correct dx in the supercell