Update final.py

Added comments to final.py