updated ft_serialize, changed xml to XMLInternalDocument, #8, improved egs