Clean up a bit, remove pool parameter from builder functions, they're
not needed.
Add some comments to the public API.