[SPARK] Change RDD to PairRDD

Refactor the RDD[Map[Key,Doc]] to PairRDD[Key,Doc]
Update the docs as well
Fix #284
[DOC] .set is a method of SparkConf not SparkContext

Fix #279