There is a nicer version of these comments in SparkContext... it might be good to just copy that version here as well. That cleans up some things like the fact that is says JSON here.