added code to calculate overall trade gains
0.4.0