Reading from stdin is now handled by the ioutil package
Fixed extra newline inserted in messages read from stdin