define pinValue(), for both gadgets and circuits
change to hookup of pins, iso of scanning/listing them
try to fix nested circuits
simplify