Holy Guacamole you have very much done the right thing. I work in the sector and once he's recalled, you should have some contact from the Women's safety worker and hopefully the probation officer if you haven't heard from them prior. If not, make sure you call up to speak to them, and talk about getting a condition not to contact you or to go within a certain distance of you home.
What he did clearly shows that he is not willing to respect your space, independence, child and the fact that the relationship is over. If I was you, although it should never be necessary in an ideal world, I would seriously consider selling up and moving if you can.
Unfortunately sounds like a long history of domestic abuse, and in cases like this, where, from what you say, he is not willing to be responsible for his own behaviour, there is a tendency for the 'offences' to escalate, getting more and more serious.
Take care of yourself, it sounds like he'll be back to prison and then he'll also have a sentence against him for some sort of aggravated assault, or more likely GBH (Grievous bodily harm) which carries a reasonable prison sentence, and given that it was pretty serious, and on licence, he will hopefully be given another sentence to run on following from his existing one. This will give you a year or so to look at relocating, at least.
Finally, like I said above, do get in contact with his probation officer as you can sort out exclusion zones, and contact requirements to protect you and your child. Please stay away from him in the future, it sounds like things are not going to get better between you, and you have given more forgiveness than he deserves. Look after you and your child, it sounds like you are a bright and very capable person, so you will do fine.
Take care. (Sorry if any of this sounds ranty!)