added filepath, errors, safe packages
added functions handling files and exceptions
modified classifyClientToFiles; now it can catch error called by other function