fix some obvious problems, add functionality for stock calculations.
make stock value calculation separate from owned_stock