Added object serialization to xml