Fixed sign bug in integ() routine