Incorporate more review feedback.
Accept boolean instead of SparkConf in methods.