Changed structure so that all signals (regs, wires, vars) live in a global object
referenced by a unique name (mod inst name + sig + uniq integer).