Sorted and made comments

Have moved operations to the StockManager from the gui, also made
comments to the new code.