Is prayer nullified by having thoughts while performing it?
Prayer isn`t nullified by having thoughts while performing it, provided that the praying person offers all of its pillars and meets all of its conditions. However, the reward decreases significantly in the absence of reverence since a praying person is rewarded according to the attentiveness of his/her heart during prayer.
In the last verse of Surah At-Tin, Allah Says (What means): "Is Allah not the most just of judges?" [At-Tin/8]. Is it permissible for us, while performing congregational prayer, to respond after the Imam recites it by saying: "Indeed, and I am among those who bear witness to that." ?
It is recommended for the worshipper to say 'Indeed' (Bala) silently after reciting or hearing the verse (/What means): "Is Allah not the most just of judges?" [At-Tin/8]. This is part of reflecting on the Quran during its recitation or listening, as Allah Says (What means): "Then do they not reflect upon the Quran, or are there locks upon [their] hearts?" (Muhammad: 24). Doing so helps in achieving humility and focus in prayer. And Allah Knows Best
Does ill-gotten money hinder the answering of the Du`a (supplication) and the means of subsistence?
Sins hinder the answering of the Du`a, and deprive the sinner from means of subsistence; whereas, acts of obedience facilitate making a living. Allah, The Almighty, Says (What means) : "And for those who fear God, He (ever) prepares a way out. And He provides for him from (sources) he never could imagine." [At-Talaq/2-3].
I am an author, and I have books stored with me. Is it permissible to pay my zakat in the form of books containing beneficial knowledge for poor students, such as chemistry and mathematics, or religious books that spread Islamic sciences?
Zakat on wealth must be paid in cash from the wealth itself. Therefore, you should pay your zakat in monetary form so that the poor can purchase what they need. And Allah Knows Best.