Uh . . . OK. I know I'm not clear on what you're asking for. I'd start by following any reading recommendations; not only might one of those books help you, but they might also lead you to other resources that work for you.
As far as advice . . . I don't have a lot. I don't know what to tell anyone about turning an affair into a long-term relationship or a marriage, and I don't know how to deal with a miscarriage. I can give you ideas but no one can tell you what will work.