title of an official in the Tang Dynasty whose job it was to revise historical records