The broad lines, the main plot and the talking heads dialogs asides, most of the average dialogs were written by one guy in a limited time if my memory serves me well. I can't find the source or the name of the guy. It wasn't Tim Cain nor Leonard Boyarsky, although the later helped a bit.