I think you did the right thing. I've never been married but I was a part of a family with parents who couldn't stand each other and it was worse seeing them force themselves to be together.
To be honest I was quite relieved when they finally decided to divorce.
I'm sure when your kids are old enough they will understand.