adding update methods to fileWriter Class to allow amending and updating with new strings
moving code into own files