Add code comments for begins example

Code comments for the major sections of the begins example program.