Changed the each method signature to match the new generic IFunction.
Also updated the documentation.