Added comments, and updated 1 If statment