This had not been done when Shentsung became emperor in 1068 and Shen Kua was now given the task

Please fix the punctuation.
This had not been done when Shen-tsung became emperor in 1068 and Shen Kua was now given the task.