Another theme of this chapter is the presence of God among the Israelites, though that is common refrain among the writing in Deuteronomy. The idea that one needs to use proper latrine techniques strikes me as humorous, and yet Moses connects it to the presence of God. That is a way to look at life we often avoid: God is present at all times.
The last thing I’ll take note of here are the commands to allow Egyptians, eventually, into the assembly and to not return fugitive slaves who come to Israel. Both of these were in response to the time the Israelites spent in slavery in Egypt. Essentially, once it was clear than an Egyptian was not from those who had oppressed Israel, they could become part of the people of God. And fugitive slaves were to always be welcome, because the Israelites were former slaves.
Is there something to be made of the Septuagint’s use of the word “ekklesia” for assembly here? It’s the same word used for the assembly that is the “church” in the New Testament.
Additionally, I would recommend to you C.S. Lewis’ discussion of economics based on charging interest in Mere Christianity. He raises a good question about how moral the economy can ever be if it is based on something explicitly forbidden by God to His people. If we only have one example of God establishing a nation including its civil law base, which is what we have in the establishment of Old Testament Israel, then should we not consider whether or not that informs some of our practices? Without going into theocracy/theonomy nonsense, but looking at the moral concepts. After all, many of the problems in the American economy center on lending/credit practices. Just some thoughts that need completion.