Crash if passed an invalid transport
Use system.stdin instead of /dev/stdin

Remove buffering logic

close #42