some helpers for detecting if we are stuck or finished
fix race condition bug with finishing calculations - use_transactions on the state machine was :false instead of false.
add better descriptions of the calculations in the dummy app