Fixed problem with boolean3in3out expression. Rearranged circuit.xml to include an input element.