From what i understand;
Joseph Smith joined freemasonry sometime in the 1830's. He subsequently "borrowed" some of the procedures and applied them to the endowment ceremony. For example, the oath taken which states that if the person taking the oath reveals any of that information to any one else, they would suffer no less penalty than death...
This was revised as of 1990. Also part of the revision, women would have to swear total obedience to their husbands and the men would swear total obedience to God and to the brethren.