refactored uploader and removed comments from handleFiles route
changed name of fileReader function to fileHandler
added error handling to writeFile function