finished commenting SA

as well as declaring variables at the top. I also changed some variable
names to be more specific.  Tested and running as well as it was before
we started commenting it