added a stock retrieval function and restructured the directory