Event sourcing almost fixed. Basic MarketSpec added
Generator to separate file