Update Stock.py

Added comments to the code.