Added slurp and barf hooks (helps with #108).
Merge pull request #109 from Jell/close-hook

Added slurp and barf hooks (helps with #108).