Originally posted by: Legendary
***spoilers***
The author is living her story. At the ending you see the the agent's real daughter - most of what happened in the movie is the story that she was writing.
IMDB's message boards for this movie have some good theories.