Added the possibility of choosing between several integration methods in correlation calculation