added saveData and loadData to TripModel
various bug fixes