Added commands to Qcircuit for optional gates
Fixed error in Ch 2 and Ch3