[FEATURE] Add comments with doc strings to market.py