Finally left him💔

I just need to vent. Im 19 with an 11 month old daughter i left her father 1 month ago. During my pregnancy he put me through hell and i stayed i stayed and i was there for him he would leave me crying on my bed and go with his friends, party and get back with his ex and then he’ll come back, he was violent he abused me physically and mentally but i didn’t care because i thought he was going to change. I even filed a police report i had bruises all over my body and i was pregnant i thought that since my daughter was born he was going to change he did. He didn’t cheat on me he left his friends he left the parties he left the alcohol but he still abused me both mentally and physically. There were times i would go running to my room where my daughter was sleeping so he wouldn’t touch me and he still did, waking up my daughter scaring her. He would call me fat (which ik i am) he would call me stupid, idiot, dumbest person ever. And he wouldn’t even clean after himself I couldn’t forget the past and i still cant. Why would he put me through so much when i was the one carrying his child i kicked him out a month ago and i don’t regret it there are times i miss him but i think its just because i got used to him. I remember before i would be grumpy and angry all day , now i feel better. He wants to take my daughter but i don’t trust him. I know he is her dad but hes 18 has no parents and idk if he has a proper place to take my daughter. Idk if this is bad what im doing as in not letting him see her. She also only has my last name not his. He never bought groceries for here cause he said he didnt know how to so how would he feed my daughter? Idk what to do he said he’ll take me to court and im scared.