He was a key figure in the conception of the Master , a sort of Moriarty figure for the Doctor , and of the Doctor 's intelligent , feminist companion Sarah Jane Smith , a departure from the rather silly Jo Grant .