fixed my basic market and changed main.cc simulation to use it instead of broken NullMarket