Added stdin support and updated README