added comments to explain each console line.