added documentation for D3 and SC2 code