Fix CLI api (was missing entrypoint hook)
Drop back to state as return val

If we store state on Algorithm then we're not thread-safe.
Upgrade to dev version of Algorithm