Remove unecessary export.

Previously used for testing.
Merge branch `rewrite` into `master`.
Fix learner behavior.

Update accept counts properly.
Fixing joins.
Function signatures.
Cleanup diary.
Merge branch `rewrite` into `master`.