fixing a couple of comments and sending fifo through cat's stdin instead of as arg to make shellcheck happy