Added comments

Added comments to describe what each line does