Everything you saw regarding the daughter and the marriage happened after the main story. She just experienced it all as one moment because she learned the alien's written language. It opened her mind to seeing her life as non-linear as we normally see time. Hence the reason her husband left her is because she allowed them to have a child she knew would eventually die of a rare disease.