Added XML save and open functionality.