changed operands array for phi functions to src1,2, etc
added comments