Add explanations for how the script works.