Change all getSherlockActivity calls to getActivity.
Also add a few comments along the way.