This sentence is compound. it can be broken up into two independent clauses. these clauses are separated by the "and" in the middle.
The first thing that came to my mind when i read that phrase was that whatever this "script" is, it must be a pretty awesome piece of work.
D. because " was a lot of fun" is a prepositional phrase.
I think it is to entertain and inform, but mostly to inform.