adapting file-stream transform example
improving docs