DO NOT SIGN ANYTHING … Get a lawyer before you agree to anything. The two years might be a good deal or it might not. That depends on how much you could get in CS per month for the next 8 years vs what it costs to run the house for the next 2 years. Use the CS calculator to get a rough estimate of what he should be paying.
Also do not get stuck (mentally) on having to stay in the house be willing to move out of it if you need to.
Also realize that no matter what happens your life is going to change.
be sure to file for ED and Alimony (if he makes more then you)
Again DO NOT SIGN ANYTHING!!! He can not force you out of the house at this time and he will not allow his credit to be ruined by defaulting on the mortgage.