add mapreduce dev code + proof of concept test
minor changes