Marriage Advice Please

I've been with my husband for 10 years. He hasn't been the most supportive or helpful man. I haven't been able to count on him much in the past, and he's been very egocentric. He recently went on a trip overseas to visit family for half a year right when we were going to buy a condo, and start a normal life together leaving me very upset. For the whole time when he was away I made up my mind to leave him since it hasn't been working out for a long time, and he treated me like barely exist. I even met the sweetest guy (as far as I know) and thought about moving on. Now husband is back and is promising the world. He says he understood everything when he was away. I'm almost 30, and want a good relationship and a loving family for my future kids. Don't know what to do. What do you think?