added method in controller to allow writing to text file to update the
recommendation text file.