Ok for the limits you should have them all wired in series, ie you take a 5v (next to one of the input connections (10, 11, 12, 13 or 15) put it into one side of the first switch, the second side of the switch goes to the first wire on the next switch and the second wire goes to the next switch etc, once you have all of your switches wired like that you then put the last spare wire into the Input you wish to use.
Hood