Optical Studies of Quasars and BL LAC Objects