added x and y limit switches.
merged master.