Changes to GUI, some components

Logic gates have a property to output 1 or 0 instead of true or false
New Ternary component added (output depends on whether a condition is true)