Few changes for Spark Streaming

* Adds filter, print functions
* Changes .map to .mapToPair when using the reduceByKey functionality for a given DStream object, since a cast to JavaPairDStream is needed