adding the LogFile class which outputs debugging text to a text file