fix WordCount class to correctly do mapreduce
add subscribe-publish functionality