I'm glad to hear that. There's a lot of good books that will help you understand things. The one I recommended above has very good information on working through an affair and understanding them (It definitely helped me to understand how easily and even innocently they can start up -- even in "good" marriages!). Unfortunately I think there are a lot of societial images and attitudes that make it easier for people to fall into infidelity.
There is no arriving, ever. It is all a continual becoming.