added a couple of comments to the code.