Chp. 31 verses 7 - 12: Moshe gives Yehoshua instructions on how to lead the people. He writes a sefer Torah for them. He tells them about the Mitzvah of Hakel, where the king reads from the book of Devarim on Succoth at the end of the 7th year.
Chp. 30 verses 11 - 14: Continuing with Moshe speaking to the people just before his was about to die. Here he discusses the availability of the Torah!