Complex sentence: The episode was written by freelance writer Morgan Gendel based on his original pitch, and he is also credited as co-writer of the teleplay with Peter Allan Fields.
Split into simpler sentences: The episode was written by freelance writer Morgan Gendel based on his original pitch. Gendel is credited as writer of the story and co-writer of the teleplay with Peter Allan Fields.