trajGen and quadLoadSimulator restructured to be general