Added labels, inverted dependency directions in the matrix.