Lots of extra comments on the sample code.