Debugged market/broker

Close #93