More PairRDDFunctions and some cleanup