Refactored radio stuff and terminal (telnet) stuff