Server Side Code Improved

file not found now terminates the program
users can now enter the file name