Function out() has been fixed.

Added two functions: read() and poll(),
which are described in README.md