Updated IO to use xml instead of serializable file.