handle files and directories separately
implemented the sense-decide-act loop for telnet
updated uname command