Constructor accepts FileDescriptor
Stream::ensure
Changed comments format. Added phpdoc annotations