add initializer for trip model. don't use history as global var name.
add trip history collection to git
bug in data_generator, break instead of next