Robot Design and off-line programming using a simulation tool