Added main for mapping.

TODO create Combiner and Reducer functions