well done, starcat.
if he shows up and makes a scene at your door, you can always call the police.
while the deadbolt is a good temporary solution, he could still enter the apartment if you're not home, so perhaps change the locks quickly. also, put a chair braced up against the door when you get home until you can get the deadbolt installed. i would also put the local police phone number on speed dial on your mobile phone and prepare a getaway bag with cash, a change of clothes and important cards in case things turn bad and you need to flee quickly.
from what i've seen here at SR, there is a high probability that he will call you soon, claiming undying love for you and want to come home in a day or two or more. just so you're prepared for that.