Added functionality to throw exception when duplicate product is added.Removed unwanted comments.