Spectroscopic investigations of ThF and ThF+.