Removed unnecessary debug & unused parameter importantFields_
Fixed bug in generateWaresForMarket