Added documentation for setJobGroup. Also some minor cleanup in SparkContext.