Reduce lmax to 2000 in generatePower - to speed up P(k) calculations significantly
Made the nonstop feature an optional compilation