A radio-optical study on the BL Lac object S5 0716+71