Fixed input to sig cascade

We were only ever initializing X_1 to 0 and never updating except for
reaction, which only ever made it go down. Should X_1 be Np or X_1_old +
Np?

Also fixed breakout condition for while loop.