Starting to add comments to code, and updated  2nd chat example