Studies of Atmospheric Distortion of Optical Wavefronts with the SOAR Shack-Hartmann WFS