Convert map results to a list for partitioning.
Fixed a bug on the Map output format.
Added an example script.