Add generator.py to write arrays into a csv file. Also refactor mapper.py and formatter.py accordingly.
The output csv file name is hardcoded in mapper.py
Usage: type sample.txt|python mapper.py