Pin 3 is the output pin 5 is the control.
The diode is probably a 1N4007.
Diodes are sometimes used to effect the on/off time of the FET, in this case maybe the duty cycle.
Resistors on gates can be there for protection or to alter switching transition times.