Add comments to functions. Remove a spurious line in set_git.