So here is the way I wired mine using radio shack parts and the track block switch and track power.
Remember to insulate the cut rails to prevent arcing.
You can connect the ground to any section of common or outside rail. Whatevers convenient.
I don't do underneath the layout. I hide stuff in bushes or rock formations.or in a biulding
After you hook up the first set and its working good then you can wire the second set. I use heat shrink.