You did the gutsy thing and,in my opinion, the right thing. You are taking a step that will provoke a crisis in your marriage. You didn't sign a death warrant on your marriage, it was dead anyway. It may be that a miracle occurs, and it is resurrected, but you took action - justified action - and that will stop the downward spiral one way or another. You need to take some control, in your case this is what seemed to be called for. Now start by protecting yourself - you may need to get away as verycrazy says. More pain is in store, but beyond that lies peace and forgiveness for you. I hope beyond it lies healing for your wife and children, too. Right now, your children need for you to be strong and whole. It is about you first, them second, and your wife third, I am afraid, because without you they have nothing. So be strong and take care. It will work out.