Here is a very useful link from the ASPCA regarding why dogs bark and how to overcome it:
Barking | ASPCA
Behavioral problems do not develop over night so you must be persistent and patient when training dogs and acknowledge that you and/or your family have reinforced the behavior by not handling it in the right way from the beginning. Now, you must reinforce the correct behavior so that the dog knows what behavior is acceptable.
If you need further assistance, you may want to call a shelter for a dog behaviorist recommendation. They will have someone that they use in order to ensure dogs can be placed in new homes. Training for you and the dog can be immensely beneficial since we are not all born with the knowledge regarding how to train dogs and what to expect during the process.
I am not going to speculate on what is going on with your marriage. If you need assistance, feel you are in danger or the dog is in danger, please PM me and I will try to assist you.
Otherwise, I am going to assume your husband is not very patient and feels helpless with the dog, thus, has become frustrated. It happens..
Good luck.