I tend to jot down moments, lines, interactions that don't really make any sense. I try and explain these scattered notes to my close friends, and they become more and more logical. I see screenwriting as a bit like a math equation which I have to solve.
There is not less wit nor less invention in applying rightly a thought one finds in a book, than in being the first author of that thought.