described refactoring of inference code to S4 objects in "objects.md"