added comments

Added comments to variables and conditional statements