Deleted some redundant code

Bafflingly, I had two copies of the set_echo and interrupt_handler functions. Copy-and-paste error I guess.