Added DuplexStreamInterface

fixes #6