added comments to user and item cf sub functions