Now checks to see if we have finished at all points during each calcualtion, in case we finish without using all the numbers. Fixes #4. Also properly finished #2.