Minor cleanup and added comments to ProductRanker