Added detailed comments for stock_analysis_class.