modified the SparkBuild.scala file and code style in some classes