Added more documentation for if statements