Updated CodeCollector.py to output csv file