Added serializing model to xml