process_data.py - cleaned up and commented