fixes in mapreduce samples, an other minor fixes