fixed bug with trains either crashing or holding on to many reservations after recalculation
some changes
readded assert.h