Improved STDIN support, added examples