Reference of component
Q1 and Q2's collector terminals go to one terminal of each relay. 

The D3 package is a dual diode, clamping each collector to the common relay terminal. BAV70 has marking A4, but I don't know what M means, though W would mean made in China.