error checking for tty
updated readme