Fixes a tiny typo. Comments and formatting to make the important parts more obvious. Original pull request #624