Poor you, but I have to give you credit for holding your temper.
I would have been livid and given that realtor an ear full.
Next time when you're home, double lock the doors and put a chair under the door handle also. That should keep them entering your house before calling first.
Arrrggg, some people just need to be smacked up the side of their heads.