Updgraded export.py to compute contact areas