Have your lawyer advise his lawyer that he cannot come to the house unannounced like that. You have held up your end of the agreement to pay him $5,000 to move out. Your lawyer needs to emphasize that if he continues to carry on like this and not follow the agreement, it will become null and void. Also, it may come down to you getting a restraining order against him for this nonsense. What exactly does he want from the house? If it's his belongings, then give him one drop dead date to come get all of his belongings or you will put them storage and give him the key and he can pay the monthly fee.
His problem, like many of them who are in crisis....they do not think that they have to follow agreements/rules, but that we need to do so.
His name may be on the deed, but he agreed to move out for a price. It is now suppose to be your safe haven. It won't be until the boundaries are set and followed. Don't respond to any of his emails unless they make sense. Do not threaten him with calling the police unless you are going to follow through and even then, I wouldn't tell him that you're going to do it unless he stops...just do it if he continues acting stupid.
I have no sympathy for people who continue to act the victim and monster because they aren't happy w/what they agreed to do.
Sit quietly, the answers will reveal themselves when you least expect them to. The past is gone, the present is a gift and you need to focus on today, allow the future to reveal itself when it is ready.