Added XML serialization/deserialization code
Added some clarification to a comment.