[SPARK-2434][MLlib]: Warning messages added, scalastyle errors fixed, and added missing punctuation