Complex sentence: In 1814, he became a doctor of theology at the University of St. Andrews and in the same year he became a fellow of the Royal Society of Edinburgh.
Split into simpler sentences: In 1814, he becomes a doctor of theology at the University of St. Andrews. The same year he became a fellow of the Royal Society of Edinburgh.