Minor updates to broker.rb and buy.rb