Added comment to InvertCondition.
Added simplify if actions from Ciprian Khlud
<ciprian.mustiata@yahoo.com>.