Just don't be too hard on yourself. Perspective is always good, though.
Keep posting, John, let us know how you are doing. I think it's wonderful that you have such a positive relationship with your ex - it will make a world of difference to the kids.