Spark functionality up and running, with help from intellij