At the end of the war he returned to Heidelberg where he taught until 1922 when he was appointed to a chair at Munich

Can you repeat this sentence, but add in punctuation?
At the end of the war he returned to Heidelberg where he taught until 1922 when he was appointed to a chair at Munich.