changed visibility of FileReader and FileWriter inner classes to prevent direct instantiation