adds comments to interface.py and fix trips.py