Added most of the code for StockDetails
Test working.