Added explanatory notes

The example worked, but its operation and control flow was not clear.