[SPARK-2434]: Added warning messages both in the comments and the execution of the algorithm