Bea is right...you will be fine in time. It's one step at a time, one day at a time. As for your xh, he's not a happy camper and will regret all that he has done when he begins to wake up and realizes all that he's missed out on and continues to miss out on. However, he is the one that has to find a way to repair the relationship w/his children. Is he strong enough to do that? Time will tell.
Sit quietly, the answers will reveal themselves when you least expect them to. The past is gone, the present is a gift and you need to focus on today, allow the future to reveal itself when it is ready.