Add parameter checks and extend documentation of estream.