added comments to results and console log