Added code to control motors in arm safely with limit switches.