More work on named-pipe and I/O functions. Added some test cases for the new functionality. Updated documentation.