fixed bug where it would run commands twice. Also allows it to be run with stdIn not being a terminal
updated README