the four books , along with chu hsis detailed commentary on them , became the basis of the civil service examinations in china and remained so until these examinations were finally eliminated in the early 20th century .