I see, these books are probably law books, and it is an essential part of the justice dispensed here that you should be condemned not only in innocence but also in ignorance.
Thoughts naturally arise. The point of meditation is not to banish thoughts but to make peace with them by realizing their lack of substance.