Made some adjustments to TradePort class. Added some more comments.