Add comments

Added comments to explain what each step does.