Added  Xml serialization and desrialization functionality