Hi Sid :
You can crank up the debounce some also, Try 1000, or 1500.
AS for the wiring, you should get some shielded cable for the wires. It will help Lots!
You DO want to connect the shield to ground but only at the controller end. It is the reason that a tin-foil hat won't stop the mind control rays, that is why mine has a ground cable
Do you have one wire that connects serially through your limit switches or one pair of wires from each switch and then daisy chained at the controller?
If that still doesn't work put a .1 mfd cap as close to the db25 as you can get it and wire one side to the input to mach and the other side to gnd..
chad