Keep your conscience keen and bright, and refrain from hankering after, or expecting, consolation. Leave that to God. He knows when, where, and how to give it to you.
You ask for some way of completely eradicating irritability. The inclination to irritability is given us to use against sin, and we were never meant to use it against our fellow men. When we do, we act contrary to our true nature.
It is, indeed, impossible for the mind not to be troubled by thoughts, but accepting them or rejecting them is possible for everyone who makes an effort...therefore we practice the frequent reading of Scripture, so that we may be open to a spiritual point of view. For this reason we frequently chant the psalms, so that we may continually grow in compunction. For this reason we are diligent in vigils, fasting, and praying, so that the mind which has been stretched to its limits may not taste earthly things but contemplate heavenly ones. When these things cease because negligence has crept in again, then, it is inevitable that the mind, by the accumulated filth of the vices, will soon turn in a carnal direction and fall.
Remember always that, once we have decided consciously to strive after righteousness, we cannot escape catastrophes and sorrows, no matter where we are.
Temptations are sent for improvement when God delivers his righteous ones to various temptations, humiliating them for some slight and unimportant offense, or to increase their purity, in order that every uncleanliness of thought, or... dross which He sees they have harbored in secret, may be burnt away in this present life, and that so He may bring them, as it were pure gold, to the future judgment...
If your heart has been softened either by repentance before God or by learning the boundless love of God towards you, do not be proud with those whose hearts are still hard. Remember how long your heart was hard and incorrigible. Seven brothers were ill in one hospital. One recovered from his illness and got up and rushed to serve his other brothers with brotherly love, to speed their recovery. Be like this brother. Consider all men to be your brothers, and sick brothers at that. And if you come to feel that God has given you better health than others, know that it is given through mercy, so in health you may serve your frailer brothers.
Faith is truly a gift, gained for us through Christ's advent. But this does not abolish our freedom or responsibility. God desires of us not only faith but action too.
The fear of the Lord is the beginning of our salvation, and its constant guardian. This it is which secures both the beginning of conversion, and the purging away of vices, and the safe retention of virtues...
You describe how bitterly you regret the inefficacy of your prayers. Beware: to wish for consolation or revelation in prayer is a sure sign of pride. Pray humbly, in perfect simplicity, seeking salvation only through forgiveness, & having faith that God will extend to you His mercy - as He did to the publican.