Positive coil wire

Alright so I've finally got the car to the point of starting. After relocating the battery to trunk wiring the starter relay msd and voltage regulator. First question there's a box relay looking deal right next to fuse box. Anyone have any idea what that is? I had a wire coming from that box grounding on my floor board, causing sparks when trying to hook up positive side of battery. Second question so I'm assuming I installed my distributor 180 out, first time trying to start it was smoking out the carb a popping out the headers. Today I popped the distributor out turned the rotor facing opposite direction and dropped it back in. Well now it starts but only if key is held down once I let go of the key it turns off. Anyone have any clue what might cause that? The key and key cylinder are brand new the outside housing that the key cylinder goes in is not, could that possibly be the reason? Only other thing I could think of is the msd wiring has one positive one negative wire and a key on ignition wire, which I hooked up to the grey wire that would've originally went to the positive side of coil.

20231209_183630.jpg

IMG_20231207_175311.jpg

IMG_20231207_175241.jpg

IMG_20231112_161744.jpg

Screenshot_20231209_191201_Gallery.jpg