This took me a few hours to build, i did some sketches of it before hand, unless you want to use Gates or something for the mechanism this design is pretty efficient. To reset it you have to put a torch down to open the incorrect door and flip the switch, then remove the torch.