Added docstring to stock.py