Added Comments

Added comments to the code