intialisation modified to include robot name as argument, and jointlimits return bug corrected