Modify Map Reduce part

Modify mapreduce part so it generates less result files.
Remove some file for exporting.