Note, pin 11 is backwards in the software so you will need to change the setting opposite of the others. See my post down the board as well regarding limit switches, "G28 Home Function..." I needed bypass caps because the motor noise was getting into the switch lines causing false levels. Also, set the limit switch debounce to 50-100. I suggest working on one limit switch line at a time, disable all the others until you get one working. Chances are it will solve the problems with the rest.