Magnetohydrodynamic Equilibrium and Stability of Stellarators