Fixes to simple_mr example

I fixed the -s variable in the simple_mr example to only generate the number of rows of data across all mappers and not for each mapper. I also did some cleanup of the code in these classes.