fixed IPL omega integral calculation
ESA integral calculation added
prettified the if’s