Matt Damon wrote himself a role where he's the smartest person in every room, fair play.
Robin Williams improvised the story about his wife farting in her sleep, and the crew's laughter is genuine.