Added additional error messages for unsuccessful logic gate connections. Connecting elements now sets inputs for the getLogicValue() function.