Code additions

Computations of the Stock Price and Quantity
Added Trappings to prevent miscomputing.