Minor cleanups
toProducer and toConsumer
Improved docs