Corrections to program

There was an accumulator where there should have been an integrator. The
reset works better with true and false than 1 and 0