improve file sending
that was changed for testing only
move timeout test out of while loop
move window blink/beep to a function
remove redundant cmd func args, use global prompt instead
alert chat window on file send/failure
merge