Functions operating on an environment are chainable.
Macro for updating an environment's state.
Added test for search-ingredient. Fixed typo in test.