fully working server; these are the files prelecture

removed off-topic edits and removed added whitespace

handled the case of a directory or a non-sh file being passed in