Added documentation of if statements