Modified MyIntegral and IteratedIntegral

I slightly modified the MyIntegral and IteratedIntegral classes to allow
the input of the weights