added methods to WordProcessor and FileIO