added a history for the buy and sell methods
history can now be sorted by time, method, share
improved the commandScanner, so that it can distinguish between diffrent
numbers of params